Psychosocial support determined by adaptive treatment algorithm